<template>
  <div class="login_reg">
    <el-tabs v-model="activeName" stretch @tab-click="handleClick">
      <el-tab-pane  label="登录" name="first">
        <login></login>
      </el-tab-pane>
      <el-tab-pane label="注册" name="second">
        <register></register>
      </el-tab-pane>
    </el-tabs>
  </div>
  <!-- <div class="login_success" v-else>
    
  </div> -->
</template>

<script>
import login from '@/components/login/login'
import register from '@/components/register/register'
export default {
  data () {      
    return {
      activeName: 'first',
    }
  },
  mounted () {
     
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    },
  },
  components: {
    login,
    register
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang='less' scoped>

@import './index.less';

</style>